package com.umakr.demo.service;

import com.umakr.demo.mapper.StudentKechengMapper;
import com.umakr.demo.model.Kecheng;
import com.umakr.demo.model.StudentKecheng;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/22.
 */
@Service
public class StudentKechengService {
    @Autowired
    StudentKechengMapper studentKechengMapper;

    public List<Kecheng> studentShowKecheng(Long sid){
        return studentKechengMapper.studentShowKecheng(sid);
    }

    public void addAll(StudentKecheng studentKecheng){
        studentKechengMapper.addAll(studentKecheng);
    }

    public void deleteAll(Long sid){
        studentKechengMapper.deleteAll(sid);
    }

}
